class Solution(object):
    def moveZeroes(self, nums):
        """
        :type nums: List[int]
        :rtype: None Do not return anything, modify nums in-place instead.
        """
        n = len(nums)
        value = 0
        for i in range(n):
            if nums[i] == 0:
                value += 1
            else:
                nums[i - value] = nums[i]
        for i in range(n - value, n):
            nums[i] = 0
        return nums


data = Solution()
nums = [0]
print(data.moveZeroes(nums))